1f8e648230f721d4f22c01bdb3961a6e47d80fc8,src/org/jgroups/stack/Protocol.java,Protocol,stopInternal,#,364
Before Change
}
catch(Exception ex) {
}
if(down_handler.isAlive()) {
down_handler.interrupt(); // still alive ? let's just kill it without mercy...
try {
down_handler.join(THREAD_JOIN_TIMEOUT);
}
catch(Exception ex) {
}
if(down_handler.isAlive())
Trace.error("Protocol.stopInternal()", "down_handler thread for " + getName() +
" was interrupted (in order to be terminated), but is is still alive");
}
After Change
}
catch(Exception ex) {
}
if(down_handler != null && down_handler.isAlive()) {
down_handler.interrupt(); // still alive ? let's just kill it without mercy...
try {
down_handler.join(THREAD_JOIN_TIMEOUT);
}
catch(Exception ex) {
}
if(down_handler != null && down_handler.isAlive())
Trace.error("Protocol.stopInternal()", "down_handler thread for " + getName() +
" was interrupted (in order to be terminated), but is is still alive");
}